<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增【请填写功能名称】')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-experiment-add">
            <div class="form-group">
                <label class="col-sm-3 control-label">在线实验名称：</label>
                <div class="col-sm-8">
                    <input name="onlineExperimentName" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">在线实验网址：</label>
                <div class="col-sm-8">
                    <input name="onlineExperimentUrl" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">专业：</label>
                <div class="col-sm-8">
                    <!--<input name="profession" class="form-control" type="text">-->
                    <select name="profession" class="form-control" id="profession" th:with="dicts=${@dict.getType('sys_profession')}" required>
                          <option th:each="dict:${dicts}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
                    </select>
                </div>
            </div>
           <!-- <div class="form-group">
            <label class="col-sm-3 control-label">是否开放实验：</label>
            <div class="col-sm-8">
                &lt;!&ndash;<input name="profession" class="form-control" type="text">&ndash;&gt;
                <select name="ifOpen" class="form-control" id="ifOpen">
                    <option value="1">是</option>
                    <option value="2">否</option>
                </select>
            </div>-->
        </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/onlineExperiment"
        $("#form-experiment-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-experiment-add').serialize());
            }
        }
    </script>
</body>
</html>